<div class="menu">
	<div align="right" style="font-weight:bold; font-size:12px; padding-bottom:8px; color:#10498A;">
		<?php echo $this->Access->getMyRole($this->Access->getMy('group_id')).": ".$this->Access->getMy('nombre_completo');?>
	</div>
	<div class="desplegable">
		<?php  $this->Form->new_menu($this->Access->getMy('id'),$this->Access->getMy('group_id'));?>
	</div>
</div>
<div class="experiencias index">
	<h2><?php __('Experiencias Laborales');?></h2>
	<table>
		<tr>
			<td class="actions_2"><?php echo $this->Html->link(__('Agregar Experiencia', true), array('action' => 'add')); ?></td>
		</tr>
	</table>
	<table cellpadding="0" cellspacing="0">
	<tr>			
			<th><?php echo $this->Paginator->sort('empresa');?></th>
			<th><?php echo $this->Paginator->sort('fecha_ingreso');?></th>
			<th><?php echo $this->Paginator->sort('fecha_retiro');?></th>
			<th><?php echo $this->Paginator->sort('actualmente');?></th>
			<th><?php echo $this->Paginator->sort('cargo');?></th>		
			<th class="actions"><?php __('Acciones');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($experiencias as $experiencia):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>		
		<td><?php echo $experiencia['Experiencia']['empresa']; ?>&nbsp;</td>
		<td><?php echo $experiencia['Experiencia']['fecha_ingreso']; ?>&nbsp;</td>
		<td><?php echo $experiencia['Experiencia']['fecha_retiro']; ?>&nbsp;</td>
		<td><?php echo $experiencia['Experiencia']['actualmente']; ?>&nbsp;</td>
		<td><?php echo $experiencia['Experiencia']['cargo']; ?>&nbsp;</td>		
		<td class="actions">
			<?php
			echo $this->Html->link(__('Editar', true), array('action' => 'edit', $experiencia['Experiencia']['id']));						
			echo $this->Html->link(__('Eliminar', true), array('action' => 'delete', $experiencia['Experiencia']['id']), null, sprintf(__('Esta seguro de eliminar esta formacion %s?', true), $experiencia['Experiencia']['empresa']));
			?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>	
</div>